<#--<h2>评论（<span class="_comment_num">${page.size()}</span>）</h2>-->
<ul id="comments" data-page="1" data-id="0">
<#list page as c>
<li class="rev-item comment-item clearfix">
    <div class="user"><a class="avatar" href="/u/52068941.html" target="_blank"><img
            src="${c.headUrl}"
            width="48" height="48"></a><span class="level">LV.${c.level}</span></div>
    <a class="useful" data-id="${c.id}" title="点赞" type="button">
        <i></i><span class="useful-num">${c.thumbupnum}</span>
    </a>
    <a class="name" href="/u/52068941.html" target="_blank">${c.username}</a>
    <span class="s-star s-star${c.rank}"></span>
    <p class="rev-txt">${c.comment}
    </p>

    <#--<div class="rev-img">-->
        <#--<a href="/photo/poi/25091_440424016.html" target="_blank"><img-->
                <#--src="http://b4-q.mafengwo.net/s13/M00/7F/60/wKgEaVzNb_-AETiXAAIHC_tV0Bk20.jpeg?imageMogr2%2Fthumbnail%2F%21200x120r%2Fgravity%2FCenter%2Fcrop%2F%21200x120%2Fquality%2F100"-->
                <#--width="200" height="120"></a>-->
        <#--<a href="/photo/poi/25091_440424020.html" target="_blank"><img-->
                <#--src="http://p1-q.mafengwo.net/s13/M00/7F/48/wKgEaVzNb-yAYCdiAAHGj47nch011.jpeg?imageMogr2%2Fthumbnail%2F%21200x120r%2Fgravity%2FCenter%2Fcrop%2F%21200x120%2Fquality%2F100"-->
                <#--width="200" height="120"></a>-->
        <#--<a href="/photo/poi/25091_440424024.html" target="_blank"><img-->
                <#--src="http://n1-q.mafengwo.net/s13/M00/7F/5B/wKgEaVzNb_yAQ4xpAAFC3Mtb4Tw62.jpeg?imageMogr2%2Fthumbnail%2F%21200x120r%2Fgravity%2FCenter%2Fcrop%2F%21200x120%2Fquality%2F100"-->
                <#--width="200" height="120"></a>-->
        <#--<a href="/photo/poi/25091_440424028.html" target="_blank"><img-->
                <#--src="http://n1-q.mafengwo.net/s13/M00/7F/5C/wKgEaVzNb_2AKAeeAAFvNsV4KkE69.jpeg?imageMogr2%2Fthumbnail%2F%21200x120r%2Fgravity%2FCenter%2Fcrop%2F%21200x120%2Fquality%2F100"-->
                <#--width="200" height="120"></a>-->
    <#--</div>-->

    <div class="info clearfix">
        <a class="btn-comment _j_comment" title="添加评论">评论</a>
        <span class="time">${c.createTime?string("yyyy-MM-dd")}</span>
    </div>

    <div class="comment add-reply ">
        <ul class="more_reply_box comment_list">
            <#--<li>-->
                <#--<a href="/u/63107989.html" target="_blank">-->
                    <#--<img src="http://b4-q.mafengwo.net/s9/M00/DA/0D/wKgBs1g919mAVdRVAACpgsqFw_Y38.jpeg?imageMogr2%2Fthumbnail%2F%2116x16r%2Fgravity%2FCenter%2Fcrop%2F%2116x16%2Fquality%2F90"-->
                         <#--width="16" height="16">🍓辣辣辣辣王🍓-->
                <#--</a>-->
                <#--：摩天轮一圈多长时间啊-->
                <#--<a class="_j_reply re_reply" data-id="625204" data-uid="63107989"-->
                   <#--data-username="🍓辣辣辣辣王🍓" title="添加回复">回复</a>-->
                <#--<br><span class="time">2019-06-18 22:44:18</span>-->
            <#--</li>-->
            <#--<li>-->
                <#--<a href="/u/52068941.html" target="_blank">-->
                    <#--<img src="http://b1-q.mafengwo.net/s10/M00/3D/07/wKgBZ1neKm2AcOhrAB5yLMoWpHI47.jpeg?imageMogr2%2Fthumbnail%2F%2116x16r%2Fgravity%2FCenter%2Fcrop%2F%2116x16%2Fquality%2F90"-->
                         <#--width="16" height="16">红袖·紫月-->
                <#--</a>-->
                <#--回复🍓辣辣辣辣王🍓：十几分钟吧-->
                <#--<a class="_j_reply re_reply" data-id="638560" data-uid="52068941"-->
                   <#--data-username="红袖·紫月" title="添加回复">回复</a>-->
                <#--<br><span class="time">2019-07-01 14:18:01</span>-->
            <#--</li>-->
        </ul>

        <div class="add-comment hide reply-form">
                                    <textarea class="comment_reply" data-comment_id="191407415"
                                              data-comment_username="红袖·紫月" data-poi_id="25091" data-poi_name="广州塔"
                                              data-parent_id="" data-parent_uid="" data-parent_username=""
                                              style="overflow: hidden; color: rgb(204, 204, 204);"></textarea>

            <#--<a class="btn btn_submit_reply" data-touser="${c.username!}" data-toid="${c.id!}">回复</a>-->
        </div>
    </div>
</li>
</#list>
    <#--<div style="float: right">-->
        <#--<div style="float: left;" ><span style="line-height:30px"> 共${page.totalPages!}页 / ${page.totalElements}条&nbsp;&nbsp;&nbsp;</span></div>-->
        <#--<div id="pagination" class="jq-pagination" style="display: inline;"></div>-->
    <#--</div>-->
    <#--<script>-->
        <#--$("#pagination").jqPaginator({-->
            <#--totalPages: ${page.totalPages!0},-->
            <#--visiblePages: 5,-->
            <#--currentPage: ${page.number+1}||1,-->
                <#--prev: '<a class="prev" href="javascript:void(0);">上一页<\/a>',-->
                <#--next: '<a class="next" href="javascript:void(0);">下一页<\/a>',-->
                <#--page: '<a href="javascript:void(0);">{{page}}<\/a>',-->
                <#--last: '<a class="last" href="javascript:void(0);" >尾页<\/a>',-->
                <#--onPageChange: function(page, type) {-->
            <#--if(type == 'change'){-->
                <#--$("#currentPage").val(page);-->
                <#--$("#searchForm").submit();-->
            <#--}-->

        <#--}-->
        <#--})-->
    <#--</script>-->
    <script>
        $('.info').on("mouseout", function () {
            $(this).find(".rep-del").css("display", "none");
        }).on("mouseover", function () {
            $(this).find(".rep-del").css("display", "block");
        })

        //点赞
        // $("._j_like_comment_btn").click(function () {
        //     var toid = $(this).data("toid");
        //     var fromid = $(this).data("fromid");
        //     $.get("/tourist/ThumbUp", {id:id}, function (data) {
        //         $("#searchForm").submit();
        //     })
        // })
    </script>
    <script>
        $(function () {
            //点赞
            $('.useful').click(function () {
                console.log("xxx");
                var id = $(this).data("id");
                //console.log(id); 获取到评论的id值
                $.post('/tourist/ThumbUp',{id:id},function (data) {
                    if (data.success){
                        alert(data.msg)
                    }else {
                        alert(data.msg)
                    }
                })

            })
            //回复
            $(".btn_submit_reply").on("click", ".replyBtn",function () {
                var touser = $(this).data("touser");
                var toid = $(this).data("toid");
                // $("#commentContent").focus();
                //$("#commentContent").attr("placeholder","回复：" + touser );

                $("#commentType").val(1);
                $("#refCommentId").val(toid);
            })
        })

    </script>
</ul>